import { rcaNumberFormat } from "./common.js";
import { commonTableOption } from "./common.js";
export const tableOption = {
  ...commonTableOption,
  page: false,
  editBtn: false,
  emptyBtn: false,
  search: false,
  column: [
    {
      label: "车站TVM钱箱清点记录表",
      children: [
        {
          type: "input",
          label: "TVM编号",
          prop: "tvmCode",
          cell: false
        },
        {
          label: "硬币回收箱",
          children: [
            // {
            //   type: "input",
            //   label: "钱箱编号",
            //   prop: "coinBoxCode",
            //   cell: false,
            //   hide: true
            // },
            {
              type: "input",
              label: "显示金额",
              prop: "coinShowAmount",
              cell: false,
              precision: 2,
              formatter: (row, value, label, column) => {
                return value !== null ? rcaNumberFormat(value) : "";
              }
            },
            {
              type: "input",
              label: "实点金额",
              prop: "coinRealAmount",
              cell: false,
              precision: 2,
              formatter: (row, value, label, column) => {
                return value !== null ? rcaNumberFormat(value) : "";
              }
            },
            {
              type: "input",
              label: "差额",
              prop: "coinDiffAmount",
              cell: false,
              precision: 2,
              formatter: (row, value, label, column) => {
                return value !== null ? rcaNumberFormat(value) : "";
              }
            },
            {
              type: "input",
              label: "非标准币金额",
              width: "150px",
              prop: "coinNonStandardAmount",
              cell: false,
              precision: 2,
              formatter: (row, value, label, column) => {
                return value !== null ? rcaNumberFormat(value) : "";
              }
            }
          ]
        },
        {
          label: "硬币补充箱",
          children: [
            // {
            //   type: "input",
            //   label: "钱箱编号",
            //   prop: "coinChangeBoxCode",
            //   cell: false,
            //   hide: true
            // },
            {
              type: "input",
              label: "显示金额",
              prop: "coinChangeShowAmount",
              cell: false,
              precision: 2,
              formatter: (row, value, label, column) => {
                return value !== null ? rcaNumberFormat(value) : "";
              }
            },
            {
              type: "input",
              label: "实点金额",
              prop: "coinChangeRealAmount",
              cell: false,
              precision: 2,
              formatter: (row, value, label, column) => {
                return value !== null ? rcaNumberFormat(value) : "";
              }
            },
            {
              type: "input",
              label: "差额",
              prop: "coinChangeDiffAmount",
              cell: false,
              precision: 2,
              formatter: (row, value, label, column) => {
                return value !== null ? rcaNumberFormat(value) : "";
              }
            },
            {
              type: "input",
              label: "非标准币金额",
              width: "150px",
              prop: "coinChangeNonStandardAmount",
              cell: false,
              precision: 2,
              formatter: (row, value, label, column) => {
                return value !== null ? rcaNumberFormat(value) : "";
              }
            }
          ]
        },
        {
          label: "纸币回收箱",
          children: [
            // {
            //   type: "input",
            //   label: "钱箱编号",
            //   prop: "paperBoxCode",
            //   cell: false,
            //   hide: true
            // },
            {
              type: "input",
              label: "显示金额",
              prop: "paperShowAmount",
              cell: false,
              precision: 2,
              formatter: (row, value, label, column) => {
                return value !== null ? rcaNumberFormat(value) : "";
              }
            },
            {
              type: "input",
              label: "实点金额",
              prop: "paperRealAmount",
              cell: false,
              precision: 2,
              formatter: (row, value, label, column) => {
                return value !== null ? rcaNumberFormat(value) : "";
              }
            },
            {
              type: "input",
              label: "差额",
              prop: "paperDiffAmount",
              cell: false,
              precision: 2,
              formatter: (row, value, label, column) => {
                return value !== null ? rcaNumberFormat(value) : "";
              }
            },
            {
              type: "input",
              label: "非标准币金额",
              width: "150px",
              prop: "paperNonStandardAmount",
              cell: false,
              precision: 2,
              formatter: (row, value, label, column) => {
                return value !== null ? rcaNumberFormat(value) : "";
              }
            }
          ]
        },
        {
          label: "纸币找零箱",
          children: [
            // {
            //   type: "input",
            //   label: "钱箱编号",
            //   prop: "paperChangeBoxCode",
            //   cell: false,
            //   hide: true
            // },
            {
              type: "input",
              label: "显示金额",
              prop: "paperChangeShowAmount",
              cell: false,
              precision: 2,
              formatter: (row, value, label, column) => {
                return value !== null ? rcaNumberFormat(value) : "";
              }
            },
            {
              type: "input",
              label: "实点金额",
              prop: "paperChangeRealAmount",
              cell: false,
              precision: 2,
              formatter: (row, value, label, column) => {
                return value !== null ? rcaNumberFormat(value) : "";
              }
            },
            {
              type: "input",
              label: "差额",
              prop: "paperChangeDiffAmount",
              cell: false,
              precision: 2,
              formatter: (row, value, label, column) => {
                return value !== null ? rcaNumberFormat(value) : "";
              }
            },
            {
              type: "input",
              label: "非标准币金额",
              width: "150px",
              prop: "paperChangeNonStandardAmount",
              cell: false,
              precision: 2,
              formatter: (row, value, label, column) => {
                return value !== null ? rcaNumberFormat(value) : "";
              }
            }
          ]
        },
        {
          label: "废钞箱",
          children: [
            // {
            //   type: "input",
            //   label: "钱箱编号",
            //   prop: "wasteBoxCode",
            //   cell: false,
            //   hide: true
            // },
            {
              type: "input",
              label: "显示金额",
              prop: "wasteShowAmount",
              cell: false,
              precision: 2,
              formatter: (row, value, label, column) => {
                return value !== null ? rcaNumberFormat(value) : "";
              }
            },
            {
              type: "input",
              label: "实点金额",
              prop: "wasteRealAmount",
              cell: false,
              precision: 2,
              formatter: (row, value, label, column) => {
                return value !== null ? rcaNumberFormat(value) : "";
              }
            },
            {
              type: "input",
              label: "差额",
              prop: "wasteDiffAmount",
              cell: false,
              precision: 2,
              formatter: (row, value, label, column) => {
                return value !== null ? rcaNumberFormat(value) : "";
              }
            },
            {
              type: "input",
              label: "非标准币金额",
              width: "150px",
              prop: "wasteNonStandardAmount",
              cell: false,
              precision: 2,
              formatter: (row, value, label, column) => {
                return value !== null ? rcaNumberFormat(value) : "";
              }
            }
          ]
        }
      ]
    }
  ]
};
